Skip to content

Update disaggregation metrics into input_tok_tpt/prefill gpu and output_tok_tpt/decode_gpu - #177

Merged
functionstackx merged 2 commits into
mainfrom
jgangani_update_disagg_metrics
Nov 6, 2025
Merged

Update disaggregation metrics into input_tok_tpt/prefill gpu and output_tok_tpt/decode_gpu#177
functionstackx merged 2 commits into
mainfrom
jgangani_update_disagg_metrics

Conversation

@jgangani

@jgangani jgangani commented Nov 6, 2025

Copy link
Copy Markdown
Collaborator

@jgangani
jgangani requested a review from a team as a code owner November 6, 2025 01:50
@github-actions

github-actions Bot commented Nov 6, 2025

Copy link
Copy Markdown
Contributor

📊 Line Count Report

File: utils/matrix-logic/generate_sweep_configs.py

Total Lines: 956

Base Lines: 956

Change: No change ➡️

@functionstackx functionstackx left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cquil11

cquil11 commented Nov 6, 2025

Copy link
Copy Markdown
Collaborator

Lgtm

@functionstackx
functionstackx merged commit 450d834 into main Nov 6, 2025
5 checks passed
@functionstackx
functionstackx deleted the jgangani_update_disagg_metrics branch November 6, 2025 03:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the benchmark metrics calculation to support disaggregated architectures by separating prefill and decode GPU counts. The changes enable accurate per-GPU throughput calculations for input tokens (prefill phase) and output tokens (decode phase) separately, rather than treating all GPUs uniformly.

Key Changes:

  • Added separate GPU count tracking for prefill and decode operations from result filenames
  • Updated throughput calculations to use appropriate GPU counts for each phase
  • Modified result filename parsing to extract ctx (prefill) and gen (decode) GPU counts

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
utils/process_result.py Added logic to read prefill/decode GPU counts from environment variables and calculate separate input/output throughput per GPU metrics
runners/launch_gb200-nv.sh Updated git branch references and comment describing result filename format
.github/workflows/benchmark-multinode-tmpl.yml Modified filename parsing to extract prefill_gpus and decode_gpus values and pass them to process_result.py

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

gpus=$(echo "$result_file" | sed -n "s/.*_gpus_\([0-9]*\).*\.json/\1/p")
prefill_gpus=$(echo "$result_file" | sed -n "s/.*_ctx_\([0-9]*\).*\.json/\1/p")
decode_gpus=$(echo "$result_file" | sed -n "s/.*_gen_\([0-9]*\).*\.json/\1/p")

Copilot AI Nov 6, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing whitespace on line 100. Remove the trailing spaces for cleaner code.

Suggested change

Copilot uses AI. Check for mistakes.
richardhuo-nv added a commit that referenced this pull request Aug 25, 2026
Replace the "Ported from NVIDIA/InferenceMAX PR #177" line with the
detail that actually matters for reproducing the numbers: the runner,
the srt-slurm pin, and the model-path resolution.

将"Ported from NVIDIA/InferenceMAX PR #177"一行替换为对复现结果真正有用的
信息:运行器、srt-slurm 固定版本以及模型路径解析方式。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

disagg prefill gb200 input tok/s/gpu & output tok/s/gpu is not correct

4 participants